package HomeWork;

import java.util.ArrayList;

public class Test1 {
    public static void main(String[] args) {
        String[] s=new String[]{"aaa", "bbb", "aaa", "aaa", "ccc", "bbb"};
        ArrayList<String> list=new ArrayList<>();
        for (int i = 0; i < s.length; i++) {
            list.add(s[i]);
        }
        for (int i = 0; i < list.size(); i++) {
            System.out.println(list.get(i));
        }
    }
}
